
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title></title>
<script type="text/javascript" src="resources/js/user/useraddBrowser.js"></script>
</head>
<body>
	<div>
		<div class="easyui-layout" data-options="fit: true">
			<div class="easyui-panel" data-options="region:'center', border:false">
				<table id="org_userbrowserGrid" data-options="fit:true, border:false,toolbar:'#org_userbrowserGrid_toolbar'"></table>
				<div id="org_userbrowserGrid_toolbar">
					<input type="text" name="username" class="easyui-textbox"  id="user_username" data-options="width:150,prompt: '用户名'"/>
					<input type="text" name="realname" class="easyui-textbox"  id="user_realname" data-options="width:150,prompt: '真实姓名'"/>
					<input type="text" name="isvalid" class="easyui-textbox"  id="user_isvalid" data-options="width:150,prompt: '账号状态'"/>
					<a href="#" class="easyui-linkbutton app-toolbar-button" data-options="plain:true" onclick="orange.useraddBrowser.queryUser()"><i class="fa fa-search icon-blue"></i><span class="icon-blue">查询</span></a>
					<a href="#" class="easyui-linkbutton app-toolbar-button" data-options="plain:true" onclick="orange.useraddBrowser.addUser()"><i class="fa fa-plus icon-blue"></i><span class="icon-blue">增加</span></a>
					<a href="#" class="easyui-linkbutton app-toolbar-button" data-options="plain:true" onclick="orange.useraddBrowser.enableUser()"><i class="fa fa-toggle-on icon-blue"></i><span class="icon-blue">启用</span></a>
					<a href="#" class="easyui-linkbutton app-toolbar-button" data-options="plain:true" onclick="orange.useraddBrowser.disableUser()"><i class="fa fa-toggle-off icon-blue"></i><span class="icon-blue">禁用</span></a>
					<a href="#" class="easyui-linkbutton app-toolbar-button" data-options="plain:true" onclick="orange.useraddBrowser.updateUser()"><i class="fa fa-pencil-square-o icon-blue"></i><span class="icon-blue">修改</span></a>
				</div>
			</div>
		</div>
		<div id="user_addUserWin" closed="true" class="easyui-window app-window-base"  title="添加用户" data-options="modal:true,minimizable:false,collapsible:false,maximizable:false,resizable:false">   
			<form id="addUserForm">
				<div class="margin5">
					<label class="label-right5"><span class="icon-red">*</span>用户名</label> 
					<input class="easyui-validatebox" data-options="required:true,validType:'USERNAME',missingMessage:'请使用数字、字母、下划线填写用户名'" type="text" name="username"/>
				</div>
				<div class="margin5">
					<label class="label-right5"><span class="icon-red">*</span>真实姓名</label> 
					<input class="easyui-validatebox" data-options="required:true,missingMessage:'与身份证姓名一致'" type="text" name="realname" />
				</div>
				<div class="margin5">
					<label class="label-right5"><span class="icon-red">*</span>身份证号</label> 
					<input class="easyui-validatebox" id="" type="text" name="idcardno" data-options="required:true,validType:'IDCARD',missingMessage:'请如实填写身份信息'" />
				</div>
				<div class="margin5">
					<label class="label-right5"><span class="icon-red">*</span>用户类型</label> 
					<input id="addUser_usertype"  name="usertype"  data-options="required:true,missingMessage:'请选择用户类型'"  />
				</div>
				<div class="app-window-div">
					<a href="#" class="easyui-linkbutton app-window-saveBtn"  onclick="orange.useraddBrowser.addUser_saveOK()"><span class="icon-blue">保存</span></a>
					<a href="#" class="easyui-linkbutton app-window-cancelBtn" onclick="$('#user_addUserWin').window('close')"><span class="icon-blue">取消</span></a>
				</div>
			</form>
		</div> 
		<div id="user_updateUserWin" closed="true" class="easyui-window app-window-base"  title="修改用户信息" data-options="modal:true,minimizable:false,collapsible:false,maximizable:false,resizable:false">   
			<form id="updateUserForm">
				<div class="margin5">
					<label class="label-right5"><span class="icon-red">*</span>用户名</label> 
					<input class="easyui-validatebox" data-options="required:true" type="text" name="username" readonly/>
				</div>
				<div class="margin5">
					<label class="label-right5"><span class="icon-red">*</span>真实姓名</label> 
					<input class="easyui-validatebox" data-options="required:true,missingMessage:'与身份证姓名一致'" type="text" name="realname" />
				</div>
				<div class="margin5">
					<label class="label-right5"><span class="icon-red">*</span>身份证号</label> 
					<input class="easyui-validatebox" id="" type="text" name="idcardno" data-options="required:true,validType:'IDCARD',missingMessage:'请如实填写身份信息'" />
				</div>
				<div class="margin5">
					<label class="label-right5"><span class="icon-red">*</span>用户类型</label> 
					<input id="updateUser_usertype"  name="usertype"  data-options="required:true,missingMessage:'请选择用户类型'"  />
				</div>
				<div class="margin5">
					<label class="label-right5"><span class="icon-red">*</span>有效日期</label> 
					<input type="text" name="validdate" class="easyui-datebox easyui-validatebox" data-options="width:167"/>
				</div>
				<div class="app-window-div">
					<a href="#" class="easyui-linkbutton app-window-saveBtn"  onclick="orange.useraddBrowser.updateUser_saveOK()"><span class="icon-blue">保存</span></a>
					<a href="#" class="easyui-linkbutton app-window-cancelBtn" onclick="$('#user_updateUserWin').window('close')"><span class="icon-blue">取消</span></a>
				</div>
			</form>
		</div>
	</div>
</body>
</html>
